-
Notifications
You must be signed in to change notification settings - Fork 4
React participant view V1 #1080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
labkey-ui-ehr/src/ParticipantHistory/TabbedReportPanel/JSReportWrapper.tsx
Outdated
Show resolved
Hide resolved
| // Declare global variables for ExtJS | ||
| declare const Ext4: any; | ||
|
|
||
| export const JSReportWrapper: FC<{ report: ReportConfig; reportNamespace?: any; tab: any }> = memo( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it makes sense to use a concrete type instead of 'any'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to update reportNamespace type. The others are reaching into legacy JS code so a little tougher to get definitive types.
labkey-ui-ehr/src/ParticipantHistory/TabbedReportPanel/OtherReportWrapper.tsx
Outdated
Show resolved
Hide resolved
| schemaName: report.schemaName, | ||
| reportId: report.reportId, | ||
| 'query.queryName': report.queryName, | ||
| participantId: '12345', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the hardcoded participantId necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this was cleaned up.
Rationale
This is the first deliverable of a react participant view in EHR. Hidden as an experimental feature, this only applies to the participant view when clicking on an animal Id within an EHR project.
Changes